package com.webservice.controller;

import com.pangus.common.dto.ApiRequest;
import com.pangus.common.dto.ApiResponse;
import com.webservice.service.RmGetDataApiService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

@RestController
@RequestMapping({"/rmgetdataapi"})
public class RmGetDataApiController {

    @Autowired
    private RmGetDataApiService rmGetDataApiService;

    @ApiOperation(value="供应商收料接收接口保存", httpMethod="POST")
    @ApiImplicitParam(value="docType", required=true, dataType="String")
    @RequestMapping(value={"/saveDataBySupRo"}, produces={"application/json"})
    public ApiResponse<Object> saveDataBySupRo(@RequestBody String docType, Map<String,String> map, HttpServletRequest request) throws IOException {
        return null;
    }
}
